import path from 'path';
import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'

const routes = [
  { path: '/', name: '登录', component: () => import('@/views/Home/login.vue') },
  { path: '/index', name: '首页', component: () => import('@/views/Home/index.vue') },
  { path: '/applicate', name: '申请首页', component: () => import('@/views/Home/applicate.vue') },
  { path: '/Application', name: '企业申请', component: () => import('@/views/Application/index.vue') },
  { path: '/approvedindex', name: '总览首页', component: () => import('@/views/Home/approvedindex.vue') },
  { path: '/CompanyInfo', name: '公司信息', component: () => import('@/views/CompanyInfo/index.vue') },
  { path: '/CompanyDetail', name: '公司详情', component: () => import('@/views/CompanyInfo/detail.vue') },
  { path: '/TalentDetail', name: '人才信息详情', component: () => import('@/views/CompanyInfo/talentDetail.vue') },
  { path: '/TalentAdd', name: '人才信息新增', component: () => import('@/views/CompanyInfo/talentAdd.vue') },
  { path: '/ProjectDetail', name: '项目信息详情', component: () => import('@/views/CompanyInfo/projectDetail.vue') },
  { path: '/ProjectAdd', name: '项目信息新增', component: () => import('@/views/CompanyInfo/projectAdd.vue') },
  { path: '/DataStatistics', name: '数据统计', component: () => import('@/views/DataStatistics/index.vue') },
  { path: '/Approval', name: '审核', component: () => import('@/views/Approval/index.vue') },
];

// 3. 创建路由实例并传递 `routes` 配置
// 你可以在这里输入更多的配置，但我们在这里
// 暂时保持简单
const router = createRouter({
  // 4. 内部提供了 history 模式的实现。为了简单起见，我们在这里使用 hash 模式。
  history: createWebHashHistory(),
  routes, // `routes: routes` 的缩写
})

//  配置全局路由


export default router;